<script type="text/javascript">
  settingsPasswordVal();
</script>
<div class="col-sm-9 content-right">
  <ol class="breadcrumb">
    <li><a class="route-controller" href="<?php echo site_url('home'); ?>">Home</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings'); ?>">Settings</a></li>
    <li>Profile</li>
  </ol>
  <h3>Settings</h3>
  <ul class="nav nav-tabs">
    <li><a class="route-controller" href="<?php echo site_url('settings/general'); ?>">General</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/profile'); ?>">Profile</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/photo'); ?>">Photo</a></li>
    <li class="active"><a class="route-controller" href="<?php echo site_url('settings/password'); ?>">Password</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/privacy'); ?>">Privacy</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/notification'); ?>">Notification</a></li>
  </ul>
  <div class="height-gap-10"></div>
  <div class="tab-content clearfix">
    <form id="settings_password_form" method="post" action="<?php echo site_url('settings/password'); ?>">
      <div class="form-group <?php if ($form_error['type'] == 1) { ?> has-error <?php } ?>">
        <label for="user_password_current">Current Password</label>&nbsp;<a onclick="showHidePassword(this, 'settings_password_form');" title="Make Passwords Visible"><i class="fa fa-eye pull-right"></i></a>
        <input type="password" class="form-control" name="user_password_current" id="user_password_current" placeholder="Current Password" value="<?php echo $user_password_current; ?>" <?php if ($form_error['type'] == 1) { ?> autofocus="true" <?php } ?> maxlength="100"/>
        <?php if ($form_error['type'] == 1) { ?>
          <small class="help-block"><?php echo $form_error['message']; ?></small>
        <?php } ?>
      </div>
      <div class="form-group <?php if ($form_error['type'] == 2) { ?> has-error <?php } ?>">
        <label for="user_password_new">New Password</label>
        <input type="password" class="form-control" name="user_password_new" id="user_password_new" placeholder="New Password" value="<?php echo $user_password_new; ?>" <?php if ($form_error['type'] == 2) { ?> autofocus="true" <?php } ?>  maxlength="100"/>
        <?php if ($form_error['type'] == 2) { ?>
          <small class="help-block"><?php echo $form_error['message']; ?></small>
        <?php } ?>
      </div>
      <div class="form-group <?php if ($form_error['type'] == 3) { ?> has-error <?php } ?>">
        <label for="user_password_new_confirm">Confirm New Password</label>
        <input type="password" class="form-control" name="user_password_new_confirm" id="user_password_new_confirm" placeholder="Confirm New Password" value="" <?php if ($form_error['type'] == 3) { ?> autofocus="true" <?php } ?>  maxlength="100"/>
        <?php if ($form_error['type'] == 3) { ?>
          <small class="help-block"><?php echo $form_error['message']; ?></small>
        <?php } ?>
      </div>
      <button class="btn btn-danger pull-right" type="submit">Save</button>
    </form>
  </div>
  <?php if ($status) { ?>
    <div class="height-gap-10"></div>
    <div class="alert alert-success ">
      <p><b><?php echo lang('success'); ?></b>&nbsp;:&nbsp;</p>
    </div>
  <?php } ?>
</div>